package com.liu.controller.dto;

import cn.hutool.core.annotation.Alias;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.liu.entity.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class OrderDTO {
    private Integer id;
    private Integer userId;
    private User user;
    private String num;
    private Integer hosId;
    private Hospital hospital;
    private Integer depId;
    private Department department;
    private Integer phyId;
    private Physician physician;
    @JsonSerialize(using = com.liu.entity.CustomDateTimeSerializer.class)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;
    private Double expense;
    private Integer StaId;
    private String state;
    private Integer flag;
}
